.container-fluid: .row: .col-sm-6.col-lg-4.col-sm-offset-3.col-lg-offset-4
	h3.text-center {{ user.name }}

	hr
	form.form-horizontal
		.form-group
			label.control-label.col-sm-4 Name
			.col-sm-8: input.form-control(type="text" placeholder="Your name" ng-model="user.name")
		.form-group
			label.control-label.col-sm-4 Username
			.col-sm-8: input.form-control(type="text" placeholder="Username" ng-model="user.username" ng-readonly="user.external == true")
		.form-group
			label.control-label.col-sm-4 Email
			.col-sm-8: input.form-control(type="email" placeholder="Email address" ng-model="user.email")
		.form-group
			label.control-label.col-sm-4 Password
			.col-sm-8: input.form-control(type="password" placeholder="Enter new password" ng-readonly="user.external == true" ng-model="user.password")
		.form-group(ng-if="!is_self")
			.col-sm-8.col-sm-offset-4: .checkbox: label
				input(type="checkbox" title="User has admin privileges" ng-model="user.admin")
				|  Admin user
		.form-group
			.col-sm-8.col-sm-offset-4: .checkbox: label
				input(type="checkbox" title="Send email alerts about failed tasks" ng-model="user.alert")
				|  Send alerts
		.form-group: .col-sm-8.col-sm-offset-4
			button.btn.btn-success(ng-click="updateUser()") Update Profile
			button.btn.btn-default(ng-if="$state.includes('users.user')" ui-sref="users.list") back


	hr(ng-if="!is_self")

	.row(ng-if="!is_self")
		.col-sm-8.col-sm-offset-4
			button.btn.btn-danger(ng-click="deleteUser()") Delete user